<template>
    <button class="lzj-button">
        <slot v-if="slots.default"></slot>
        <template v-else>按钮</template>
    </button>
</template>
<script lang="ts" setup>
import { useSlots } from 'vue';
const slots = useSlots();
</script>
<style scoped>
.lzj-button {
    padding: 8px 12px;
    width: fit-content;
    height: fit-content;
}
</style>